<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "robot_operate_task".
 *
 * @property string $id
 * @property string $robot_no
 * @property string $operate
 * @property string $operate_val
 * @property string $app_id
 * @property integer $create_time
 */
class RobotOperateTask extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'robot_operate_task';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['create_time'], 'integer'],
            [['id'], 'string', 'max' => 36],
            [['robot_no'], 'string', 'max' => 60],
            [['operate'], 'string', 'max' => 10],
            [['operate_val'], 'string', 'max' => 100],
            [['app_id'], 'string', 'max' => 30],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'robot_no' => 'Robot No',
            'operate' => 'Operate',
            'operate_val' => 'Operate Val',
            'app_id' => 'App ID',
            'create_time' => 'Create Time',
        ];
    }
}
